class Post < ActiveRecord::Base
  has_one :image
  belongs_to :user
  has_many :comments

  validates_presence_of :title, :body
end
